// Written by Steve Andersen, copyright (c) 2007 ONE/Northwest
// This program is released under the GNU General Public License. http://www.gnu.org/licenses/
public class ONEN_Test_ConDefaultAccount {
 
	static testMethod void TestAccountAdd() {	 
		Id FirstContactId;
		//create first contact
		//UnitTestData.CreateTestContact(1);
		Contact firstContact = new Contact (
			FirstName='Joe',
			LastName='Johanssen'			
		);
		//create the contact
		insert firstContact;
		//the AccountAdd.tgr should fire on this insert, putting the default Account Id on the Contact
		
		//get the Account Name from the newly creatd Contact
		Contact createdFirstContact = [select Account.Name from Contact where Id =:firstContact.id];
		//the default Account should have been added to the contact
		System.assertEquals('Individual',createdFirstContact.Account.Name);
	}
}